package com.chenfeng.dataobject;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * @Author:陈峰
 * @Despriction:产品类目实体类
 * @Date:Created in 22:46 on 2018/1/21.
 * @ModifyBy:
 */
@Entity
@Data
@DynamicUpdate
public class ProductCategory {
    public  ProductCategory(){
    }
    public ProductCategory(String categoryName, Integer categoryType) {
        this.categoryName = categoryName;
        this.categoryType = categoryType;
    }
    @Id
    @GeneratedValue
    private Integer categoryId;
    private String categoryName;
    private Integer categoryType;
}
